<?php

return [
    /*
     * The site id is used to retrieve and display Google Analytics statistics
     * in the admin section.
     *
     * Should look like: ga:xxxxxxxx.
     */
    'siteId' => env('ANALYTICS_SITE_ID'),

    /*
     * Set the client id.
     *
     * Should look like:
     * xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
     */
    'clientId' => env('ANALYTICS_CLIENT_ID'),

    /*
     * Set the service account name.
     *
     * Should look like:
     * xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@developer.gserviceaccount.com
     */
    'serviceEmail' => env('ANALYTICS_SERVICE_EMAIL'),

    /*
     * You need to download a P12-certificate from the Google API console;
     * Make sure to store this file in a secure location.
     */
    'certificatePath' => storage_path('laravel-analytics/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-privatekey.p12'),

    /*
     * The amount of minutes the Google API responses will be cached.
     * If you set this to zero, the responses won't be cached at all.
     */
    'cacheLifetime' => 60 * 24 * 2,

    /*
     * The amount of seconds the Google API responses will be cached for
     * queries that use the real time query method. If you set this to zero,
     * the responses of real time queries won't be cached at all.
     */
    'realTimeCacheLifetimeInSeconds' => 5,
];
